﻿using System;
using System.Collections.Specialized;
using System.Web;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Shield.HTTPModule.Tests
{
    /// <summary>
    ///This is a test class for RequestDeflectorTest and is intended
    ///to contain all RequestDeflectorTest Unit Tests
    ///</summary>
    [TestClass]
    public class RequestDeflectorTest
    {
        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext { get; set; }

        #region Additional test attributes

        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //

        #endregion

        /// <summary>
        ///A test for Whitelist
        ///</summary>
        [TestMethod]
        public void WhitelistTest()
        {
            var target = new RequestDeflector(); // TODO: Initialize to an appropriate value
            StringCollection expected = null; // TODO: Initialize to an appropriate value
            StringCollection actual;
            target.Whitelist = expected;
            actual = target.Whitelist;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Mode
        ///</summary>
        [TestMethod]
        public void ModeTest()
        {
            var target = new RequestDeflector(); // TODO: Initialize to an appropriate value
            var expected = new RequestDeflectorType(); // TODO: Initialize to an appropriate value
            RequestDeflectorType actual;
            target.Mode = expected;
            actual = target.Mode;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ErrorURL
        ///</summary>
        [TestMethod]
        public void ErrorURLTest()
        {
            var target = new RequestDeflector(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.ErrorURL = expected;
            actual = target.ErrorURL;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Blacklist
        ///</summary>
        [TestMethod]
        public void BlacklistTest()
        {
            var target = new RequestDeflector(); // TODO: Initialize to an appropriate value
            StringCollection expected = null; // TODO: Initialize to an appropriate value
            StringCollection actual;
            target.Blacklist = expected;
            actual = target.Blacklist;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Init
        ///</summary>
        [TestMethod]
        public void InitTest()
        {
            var target = new RequestDeflector(); // TODO: Initialize to an appropriate value
            HttpApplication context = null; // TODO: Initialize to an appropriate value
            target.Init(context);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Dispose
        ///</summary>
        [TestMethod]
        public void DisposeTest()
        {
            var target = new RequestDeflector(); // TODO: Initialize to an appropriate value
            target.Dispose();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for context_BeginRequest
        ///</summary>
        [TestMethod]
        [DeploymentItem("Shield.HTTPModule.dll")]
        public void context_BeginRequestTest()
        {
            var target = new RequestDeflector_Accessor(); // TODO: Initialize to an appropriate value
            object sender = null; // TODO: Initialize to an appropriate value
            EventArgs e = null; // TODO: Initialize to an appropriate value
            target.context_BeginRequest(sender, e);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for CheckInput
        ///</summary>
        [TestMethod]
        public void CheckInputTest()
        {
            var target = new RequestDeflector(); // TODO: Initialize to an appropriate value
            string param = string.Empty; // TODO: Initialize to an appropriate value
            target.CheckHTML(param);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for RequestDeflector Constructor
        ///</summary>
        [TestMethod]
        public void RequestDeflectorConstructorTest()
        {
            var target = new RequestDeflector();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}